<?php

/**
 * Log写入器接口
 * 
 * 以下是利用log writer，对ILogger日志进行记录的例子：
 * <code>
 * $message = " i am %Y message";
 * ILogger::setFilter(new ISimpleLogFilter());
 * ILogger::addWriter(new IFileLogWriter("./test_%Y%m%d.log"), new ISimpleLogFilter());
 * ILogger::debug($message);
 * ILogger::debug("aaaa", "%{a} %{t}");
 * ILogger::debug("i am closed", "%{a} %{t}");
 * </code>
 *
 * @version $Id: ILogWriter.php 312 2008-04-23 16:29:38Z iwind $
 * @package util.log.writer
 */
interface ILogWriter {
	/**
	 * 关闭writer
	 *
	 */
	public function close();
	
	/**
	 * 写日志信息
	 *
	 * @param string $message 日志信息
	 */
	public function write($message);
}

?>